package com.example.demo.permission.menu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.demo.permission.menu.pojo.Menu;

@Mapper
public interface MenuMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Menu record);

	int insertSelective(Menu record);

	Menu selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Menu record);

	int updateByPrimaryKey(Menu record);

	List<Menu> getAllMenu();

	List<Menu> getMenusByUserId(Long userId);

	List<Menu> menuTree();

	List<Long> getMenuByRid(Long rid);
}